package main

import (
	"flag"
	"service_keepalive/alarm"
	"service_keepalive/config"
	"service_keepalive/logger"
	"service_keepalive/watch"
)

func main() {
	var configFile string
	flag.StringVar(&configFile, "f", "config.yaml", "配置文件")
	flag.Parse()
	config.Setup(configFile)
	logger.Setup()
	defer logger.Sync()
	alarm.Setup()
	watch.Setup()
}
